package org.jash.demo2205

import android.app.Application
import com.alibaba.android.arouter.launcher.ARouter
import com.alipay.sdk.app.EnvUtils
import com.hyphenate.chat.ChatClient
import com.hyphenate.helpdesk.easeui.UIProvider
import com.umeng.commonsdk.UMConfigure
import dagger.hilt.android.HiltAndroidApp
import org.jash.demo2205.utils.SPUtils
@HiltAndroidApp
class App:Application() {
    override fun onCreate() {
        super.onCreate()
        SPUtils.init(this)
        ARouter.openLog()
        ARouter.openDebug()
        ARouter.init(this)
        UMConfigure.init(this, "66ad9795cac2a664de8145c9", "bw", UMConfigure.DEVICE_TYPE_PHONE, "")
        EnvUtils.setEnv(EnvUtils.EnvEnum.SANDBOX)

        val options = ChatClient.Options().setAppkey("1404240903025537#kefuchannelapp300069").setTenantId("300069")
        ChatClient.getInstance().init(this, options)
        UIProvider.getInstance().init(this)
    }
}